<* include file=$header_file *>
<div class="itemtitle">
  <h3>User Management&nbsp;&raquo;&nbsp;Edit User  <input  type="button" value="  Refresh " class="btn" onClick="window.location.reload()"/> </h3>
</div>

<form action="/<* $controller *>/opedit" method="post"  name="press_form" id="press_form"  onsubmit="this.submitbutton.disabled=true;" >
 <table class="tb tb2 ">
 	<tr>
      <th  class="partition" colspan="3">User Login Information</th>
    </tr>
    
    <tr>
      <td class="td22"><span class="red">*</span>User Name:</td>
    <td class="vtop "><input name="username" id="username" value="<* $result.username *>" type="text" class="txt" /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    <tr>
      <td class="td22"><span class="red">*</span>New Password</td>
	  <td class="vtop "><input name="password" id="password" value="" type="password" class="txt" /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    <tr>
      <td class="td22"><span class="red">*</span>Confirmation Password:</td>
    <td class="vtop"><input name="repassword" id="repassword" value=""  type="password" class="txt" /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>    
        <td class="td22"><span class="red">*</span>Allowed to login:</td>
    <td class="vtop ">
        <input name="iscanlogin" type="checkbox" value="1" <* if $result.iscanlogin == '1' *> checked="checked" <*/if *> class="checkbox" />
        &nbsp;&nbsp;(Tick for allowing to login)
    </td>

 	<tr>
      <th  class="partition" colspan="3">User Basic Information</th>
    </tr>
    
    <tr>
    <td class="td22">Name:</td>
    <td class="vtop "><input name="name" value="<* $result.name *>"  type="text" class="txt" /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    <tr>
    <td class="td22">Gender:</td>
    <td class="vtop ">
	<* html_radios name='gender' options=$genderOptions selected=$genderSelect *>
	</td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    
        <tr>
    <td class="td22"><span class="red">*</span>Branch:</td>
    <td class="vtop ">
		<* html_options class="select" name=branch_id options=$resultArea selected=$areaSelect *>
    </td>
    </tr>
        <tr>
    <td class="td22">Mobile:</td>
    <td class="vtop "><input name="mobile" value="<* $result.mobile *>" type="text" class="txt" /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
 	<tr>
      <td colspan="3" class="td27">
		<input name="submitbutton" id="submitbutton" type="submit" value=" Save " class="btn"/>
        &nbsp;&nbsp;
        <input  type="button" value=" Back to list " class="btn" onClick="history.back();"/></td>
    </tr>
    
 </table>
 <input name="uid" type="hidden" value="<* $result.uid*>"> 
</form>

<* include file=$bottom_file *>